import request from "./request";
const Req = new request()

export function list(page=0,limit=10) {
    return Req.get({
        url: '/categoryList',
        data: {
            page, 
            limit
        }
    })
}
export function del(_id) {
    return Req.post({
        url: '/categoryDelete',
        data: {
            _id
        }
    })
}
export function add({name,url,sort,indexShow}) {
    return Req.post({
        url: '/categoryAdd',
        data: {
            name,
            url,
            sort,
            indexShow
        }
    })
}
export function update({}) {
    return Req.post({
        url: '/categoryEdit',
        data: {
            
        }
    })
}